PeachDrawing.Text
PeachDrawing.Text.Unicode.Bidi
Bidi.ReorderLine(byte[], int, int) Method
Puts the pieces of one line into the order they are drawn in, left to right (rule L2).
public static System.Collections.Generic.IReadOnlyList<PeachDrawing.Text.Unicode.BidiRun> ReorderLine(byte[] levels, int lineStart, int lineLength);
Parameters
levels System.Byte[]
Resolved levels, as Levels or any array of the caller’s own granularity.
lineStart System.Int32
Index in levels of the line’s first element.
lineLength System.Int32
Number of elements on the line.
Returns
System.Collections.Generic.IReadOnlyList<BidiRun>
The line’s runs of equal level in visual order. Elements inside one run stay in logical order: it is
whole runs that are moved, and a run at an odd level still has to be reversed by whoever draws it
(see Mirror(string, byte)).